var id=getvl("id");
/*urlcore+*/
$(function(){
	if(id!=""){
		$("#huifu").attr("href","12.4.2bangzhuzhongxin_huifu.html?id="+id);
		 pingpai();
	}
})
	   	   
	function  pingpai(){
	     	 $("#quanbubiaoti").html("");
	    $.ajax({
        url: urlcore+ "/api/helpCenter/selectDetails?id="+id,
			type: "get",
			dataType: 'json',
			contentType: "application/json;charset=utf-8",
			success: function(data) {
				if(data.success == true) {
					var da=data.data.helpCenter;
					//$("#baioti").html(da.title);
					/*'<div class="buy_help_title">'+
		'<dl class="clearfix">'+
			'<dt>'+
				'<img src="'+da.user.headImg+'" />'+
			'</dt>'+
			'<dd>'+
				'<h5>'+da.user.userName+'<span>楼主</span></h5>'+
				'<div class="buy_help_xinxi">'+da.gmtDatetime+'<div class="fr">'+
						'<em>'+da.watchTime+'</em>'+
						'<i>'+da.commentNum+'</i>'+
					'</div>'+
				'</div>'+
			'</dd>'+
		'</dl>'+
	'</div>'+*/
	
	/*'<div class="buy_help_zan clearfix">'+
		'<span>'+data.data.praiseRecordList.length+'个人赞过</span>'+
		'<ul class="clearfix">';
		   $.each(data.data.praiseRecordList,function(y,n){
		   	leirong+='<li><img src="'+n.user.headImg+'" /></li>';
		   });
		
		leirong+='</ul>'+
	'</div>'+
	'<div class="buy_help_huifu">';*/
	
	/*$.each(data.data.helpCommentList,function(q,m){
			leirong+='<dl class="clearfix">'+
			'<dt>'+
				'<img src="'+m.user.headImg+'" />'+
			'</dt>'+
			'<dd>';
			if(m.user.userType==1){
				leirong+='<h5>'+m.user.userName+'<em>LV.'+m.user.bullLevel+'</em></h5>';
			}else if(m.user.userType==2){
				leirong+='<h5>'+m.user.userName+'<em>LV.'+m.user.sellerLevel+'</em></h5>';
			}
				leirong+='<span>'+m.helpCenter.gmtDatetime+'</span>'+
				'<p>'+m.helpCenter.content+'</p>'+
			'</dd>'+
		'</dl>';
	})*/
	var leirong='<div class="buy_help_con">'+da.content+'</div>';
	  $("#leirong").append(leirong);
				}
			},
			error: function() {
				alert("error");
			}
		});
	}



function dianzhan(){
	
	  if(id!="" && uuuuid!=""){
	  	 $.ajax({
        url: urlcore+"/api/helpCenter/addPraiseNum?id="+id,
			type: "get",
			dataType: 'json',
			contentType: "application/json;charset=utf-8",
			success: function(data) {
				if(data.success == true) {
				}
			},
			error: function() {
				alert("error");
			}
		});
	  }else{
	  	alert("未登录");
	  }
}
